package datatypes.film;

public class filmDirector {

	private String name;
	private String id;
	private String films;

	public filmDirector(String name, String id, String films) {
		this.name = name;
		this.id = id;
		this.films = films;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getFilms() {
		return films;
	}

	public void setFilms(String films) {
		this.films = films;
	}
	
	@Override
	public String toString(){
		StringBuilder sb = new StringBuilder();
		
		if (id != null && id.length() > 0) {
			sb.append("director id: " + id + "\n");
		}
		
		if (name != null && name.length() > 0) {
			sb.append("director name: " + name + "\n");
		}
		
		if (films != null && films.length() > 0) {
			sb.append("director films: " + films + "\n");
		}
		
		return sb.toString();
		
	}
}
